<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<%=basePath%>">
<script src="script/jquery171.js"></script>
<script type="text/javascript" >
$.extend({
	includePath: '',
	include: function(file) {
		var files = typeof file == "string" ? [file]:file;
		for (var i = 0; i < files.length; i++) {
			var name = files[i].replace(/^\s|\s$/g, "");
			var att = name.split('.');
			var ext = att[att.length - 1].toLowerCase();
			var isCSS = ext == "css";
			var tag = isCSS ? "link" : "script";
			var attr = isCSS ? " type='text/css' rel='stylesheet' " : " language='javascript' type='text/javascript' ";
			var link = (isCSS ? "href" : "src") + "='" + $.includePath + name + "'";
			if ($(tag + "[" + link + "]").length == 0){
				document.write("<" + tag + attr + link + "></" + tag + ">");
			} 
 		}
	}
});

//引入文件
$.include(['style/menu.css'
           ,'style/base.css'
           ,'style/form.css'
           ,'style/tab.css'
           ,'style/general.css'
           ,'style/layout1.css'
           ,'style/validation.css'
           ,'style/zTreeStyle.css'
           ,'script/jquery.client.js'
           ,'script/adddate.js'
           ,'script/hoverIntent.js'
           ,'script/superfish.js'
           ,'script/menu.js'
           ,'script/jscharts_mb.js'
           ,'script/excanvas.min.js'
           ,'script/jquery.flot.min.js'
           ,'script/jquery.flot.pie.min.js'
           ,'script/jquery.validate.js'
           ,'script/jquery.metadata.js'
           ,'script/additional-methods.js'
           ,'script/messages_cn.js'
           ,'script/jquery.ztree.all-3.2.js']);
</script>  

<title><tiles:insertAttribute name="title" ignore="true" /></title>
</head>

<body>
	<table>
		<tr>
			<td height="40" colspan="2"><tiles:insertAttribute name="header" />
			
			</td>
		</tr>
		<tr>
			<td height="30" colspan="2"><tiles:insertAttribute name="menu" />
			</td>
		</tr>
		<tr>
			<td height="30" colspan="2"><tiles:insertAttribute name="content" /></td>
		</tr>
		<tr>
			<td height="30" colspan="2"><tiles:insertAttribute name="footer" />
			</td>
		</tr>
	</table>
	<!-- 
<div id="os"></div>
<div id="browser"></div>
<script type="text/javascript">
$('#os').html('Your browser is running on: <b>' + $.client.os + '</b>');
$('#browser').html('Your browser is: <b>' + $.client.browser + '</b>');


//判断浏览器版本
var bro=$.browser; 
    var binfo=""; 
    if(bro.msie) {binfo="Microsoft Internet Explorer "+bro.version;} 
    if(bro.mozilla) {binfo="Mozilla Firefox "+bro.version;} 
    if(bro.safari) {binfo="Apple Safari "+bro.version;} 
    if(bro.opera) {binfo="Opera "+bro.version;} 
    alert(binfo); 
//判断分辨率
alert('当前分辨率:'+screen.width+'*'+screen.height);//显示器分辨率，只能用JavaScript代码获取
</script>
 -->
</body>
</html>